package com.yunbai.yunbaigrowup.utils;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class StringUtils {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(create18Str());

	}
	
	
	public static String create18Str()
	{
		String str="";
		SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
		
		int num=new Random().nextInt(9000);//   0----10000+1000    1000-11000
		str=sdf.format(new Date())+(num+1000);
		return str;
	}
	
	public static String createFolderName()
	{
		String str="";
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
		str=sdf.format(new Date());
		return str;
	}

}
